import request from '@/utils/request_axios'

// 拓布图接口
export function queryTopology (data) {
  return request({
    url: '/btos/index/topology',
    method: 'get',
    data
  })
}

/**
 * 区域统计
 */
export function areaData () {
  return request({
    url: '/btos/es/areaEquipment',
    method: 'get'
  })
}

// 获取菜单
export function getMenuList () {
  return request({
    url: '/sys/user/center/perms',
    method: 'get'
  })
}
/**
 * 修改一个账号密码
 * @param {Object} data
 * @returns
 */
export function setAdminPassword (data) {
  return request({
    url: '/sys/users/change-pwd',
    method: 'POST',
    data
  })
}
export function userCount () {
  return request({
    url: '/sys/count-login-user',
    method: 'GET'
  })
}
